import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  //主体名称模糊查询 queryComcode
  queryComcode: (query) => api.get(`${config.interfaces.type5}instrument-server/rating/queryComcode`, query),
  //债券代码模糊查询
  queryBondId: (query) => api.post(`${config.interfaces.type5}instrument-server/rating/queryTradingCode`, query),
  //获取主体评级监控列表
  queryMainList: (query) => api.post(`${config.interfaces.type5}instrument-server/rating/queryComRatingList`, query),
  // 获取债券评级监控列表
  queryBondRatingList: (query) => api.post(`${config.interfaces.type5}instrument-server/rating/queryBondRatingList `, query),
  //获取中债隐含评级监控列表
  queryList: (query) => api.post(`${config.interfaces.type5}instrument-server/rating/queryImpliedRatingList`, query),
  //获取债券评级监控历史
  getBondHistory: (query) => api.get(`${config.interfaces.type5}instrument-server/rating/getBondHistory`, query),
  //获取债券评级监控持仓
  getBondHold: (query) => api.get(`${config.interfaces.type5}instrument-server/rating/getBondHold`, query),
  //获取中债隐含评级监控历史
  getImplicationHistory: (query) => api.get(`${config.interfaces.type5}instrument-server/rating/getImplicationHistory`, query),
  //获取中债隐含评级监控持仓
  getImplicationHold: (query) => api.get(`${config.interfaces.type5}instrument-server/rating/getImplicationHold`, query),
  //获取主体监控历史
  getCompanyHistory: (query) => api.get(`${config.interfaces.type5}instrument-server/rating/getCompanyHistory`, query),
  //获取主体监控持仓
  getCompanyHold: (query) => api.get(`${config.interfaces.type5}instrument-server/rating/getCompanyHold`, query),
};
